
<?php 
	//$this->chromephp->log($menu);
	//$this->chromephp->log($hotels);
	

?>

<div class="container_12">
        

            
            <!-- Dashboard icons -->
            <div class="grid_7">
            	<a href="<?php echo site_url('Sch/SchMakeResevation');?>" class="dashboard-module">
                	<img src="<?php echo base_url();?>assets/img/adminTemplate/Crystal_Clear_write.gif" width="64" height="64" alt="edit" />
                	<span>Reservar</span>
                </a>
                
                <a href="<?php echo site_url('Sch/SchOffers');?>" class="dashboard-module">
                	<img src="<?php echo base_url();?>assets/img/adminTemplate/Crystal_Clear_file.gif" width="64" height="64" alt="edit" />
                	<span>Ofertas</span>
                </a>
                
                <a href="<?php echo site_url('School/extras');?>" class="dashboard-module">
                	<img src="<?php echo base_url();?>assets/img/adminTemplate/Crystal_Clear_files.gif" width="64" height="64" alt="edit" />
                	<span>Extras</span>
                </a>
                
                <a href="<?php echo site_url('School/schedules');?>" class="dashboard-module">
                	<img src="<?php echo base_url();?>assets/img/adminTemplate/Crystal_Clear_calendar.gif" width="64" height="64" alt="edit" />
                	<!--  <img src="<?php echo base_url();?>assets/img/rb-icons/icon-calendario.png" width="64" height="64" alt="edit" /> -->
                	<span>Calendario</span>
                </a>
                
                <a href="<?php echo site_url('School/profile');?>" class="dashboard-module">
                	<img src="<?php echo base_url();?>assets/img/adminTemplate/Crystal_Clear_user.gif" width="64" height="64" alt="edit" />
                	<span>Perfil</span>
                </a>
                
                <a href="" class="dashboard-module">
                	<img src="<?php echo base_url();?>assets/img/adminTemplate/Crystal_Clear_stats.gif"  width="64" height="64" alt="edit" />
                	<span>Estatisticas</span>
                </a>
                
                <a href="<?php echo site_url('School/settings');?>" class="dashboard-module">
                	<img src="<?php echo base_url();?>assets/img/adminTemplate/Crystal_Clear_settings.gif" width="64" height="64" alt="edit" />
                	<span>Definicoes</span>
                </a>
                <div style="clear: both"></div>
            </div> <!-- End .grid_7 -->
            
            <!-- Account overview -->
            <div class="grid_5">
                <!--  <div class="module"> -->
                        <h2><span>Informação da Escola</span></h2>
                        
                        <!--  <div class="module-body"> -->
                        
                                <p>	
                                	<span class="label label-info">Utilizador</span>
                               		<?php echo ' '.$school->username;?>
                               	</p>
                                <p>	
                                	<span class="label label-info">Nome da escola</span>
                               		<?php echo ' '.$school->company;?>
                               	</p>
                                <p>
                                	<span class="label label-info">eMail</span>		
                                	<?php echo ' '.$school->email;?>
                                </p>
                                <p>
                                	<span class="label label-info">Registo</span>
                                	<?php echo ' '.$school->created_on;?>
                                </p>
                                <p>
                                	<span class="label label-info">Ultimo Login</span>
                                	<?php echo ' '.$school->last_login;?>
                                </p>
                                <p>
                                	<span class="label label-info">IP</span>
                                	<?php echo ' '.$school->ip_address;?>
                                </p>
                                <p>
                                	<span class="label label-success">Hoteis Associados</span>
                                	<?php //echo 'escola 1';?>
                                	<p></p>
                                	<?php 
                                	
                                	if (!empty($hotels)) {
	                                	foreach ($hotels as $value) {?>
	                                		<form action="<?php echo site_url('School/hotel/'.$value->id);?>" method="post">
	                                			<button class="btn btn-success" type="submit"><?php echo $value->company; ?></button>
	                                			<p></p>
	                                		</form>
	                                		<?php 
	                                	}
                                	}
	                                else 
	                                	echo '<p>nao existem hoteis associados a esta escola ...</p>'; ?>
	                                
                                	<!--  
                                	<button class="btn btn-success" href="#">Hotel 1</button>
                                	<button class="btn btn-success" href="#">Hotel 2</button>
                                	-->
                                </p>
                                
                                <!--
                                <strong>IP: </strong><?php //echo $school->ip_address;?>
                                -->
                            
                            	<!--  
                            	<h2>informação do hotel:</h2>
                            	<strong> ... lista de hoteis associadas a esta escola ...</strong>
                            	-->
                           	<p></p>
                           	
                           	<!--
                         	<div class="indicator">
                    			<div style="width: 23%;"></div>
                        	</div>
                        	-->

                        <!--  </div> -->
                <!--  </div> -->
                <div style="clear:both;"></div>
            </div> <!-- End .grid_5 -->
            
			<div style="clear:both;"></div>
            
</div> <!-- End .container_12 -->
        
<!--  
<div class="container_16">
	<div class="grid_5">
		<div class="module">
			<h2><span>hello</span></h2>
			<div class="module-body">
			<p>grid 5</p>
			</div>
		</div>
	</div>
	<div class="grid_4">
		<p>grid 4</p>
	</div>
	<div class="grid_12">
		<p>grid 12</p>
	</div>
    <div style="clear:both;"></div>

</div>
-->    

<script>
	$(document).ready(function() {
		
	});                               
</script>








